package com.egg.mall.service.sku.order.impl;

import com.egg.common.mybatis.service.impl.BaseServiceImpl;
import com.egg.mall.entity.sku.orders.SkuOrdersStateHistory;
import com.egg.mall.mapper.sku.order.SkuOrdersStateHistoryMapper;
import com.egg.mall.service.sku.order.ISkuOrdersStateHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.io.Serializable;


/**
 * @author east
 * @since 2022-09-05
 */
@Slf4j
@Service
public class SkuOrdersStateHistoryServiceImpl extends BaseServiceImpl<SkuOrdersStateHistoryMapper, SkuOrdersStateHistory> implements ISkuOrdersStateHistoryService {


    @Override
    public void add(Serializable orderId, String state) {
        SkuOrdersStateHistory osh = new SkuOrdersStateHistory();
        osh.setOrderId(Long.parseLong(orderId.toString()));
        osh.setState(state);
        baseSave(osh);
    }


}
